#ifndef INVOICE_H
#define INVOICE_H
#include"tstring.h"
#include"textlib.h"
//class declaration
class Invoice
{
private:
// declaring the data members of the Invoice class
String invoiceNum,item;
double unitPrice;
int Quantity;
char taxType;
//declaring the private functions that are accessible only to the Invoice
//class members
double totalPrice();
double calculatorGST();
double calculatorPST();
double shipCost();
double grandTotal();
public:
Invoice (String Number,String purchase, double Cost,int Qty,char tax);
//declaring the constructor
void writeReport() ;
// output invoice report information
};
#endif
|